
*********************************************Getting the data ready*********************************************
clear
set more off
*replace line 6 below with your own working directory
cd "/Users/hanaattia/Dropbox/Mac (2)/Desktop/PaperII_termination/FPA/Empirics/Replication"
log using FPA_replication.log, replace
use "1. Data_Replication.dta"

*Creating congressional oversight variable
gen cong_oversight = 0
replace cong_oversight = 1 if tertype == 4
replace cong_oversight = 1 if tertype == 5

*Droping congressional sanctions cases and keeping congressional oversight and executive sanctions cases
drop if tertype == 1 
drop if tertype == 2

*Droping cases that ended in stalemate
drop if drop_stalemate == 1

*Creating variable that denotes whether the country is targeted by multiple US sanctions regimes
sort cowyearmonth
quietly by cowyearmonth: gen dup = cond(_N==1,0,_n)
gen multiple = 0
replace multiple = 1 if dup > 0

*Creating variable that denotes whether the country has received above average NYT news coverage
gen log_NYT_above_mean = 0
replace log_NYT_above_mean = 1 if log_NYT_monthly_t_1 > 2.602981


generate termination_targetco = 0
replace  termination_targetco = 1 if status == 1

generate termination_senderca = 0
replace  termination_senderca = 1 if status == 2

*********************************************Regression analysis********************************************* 
**Table 1: Looking into the termination of US sanctions
set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)

*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)

*calculating the change in the hazard of termination after target acquiesence if case is a congressional oversight case
disp exp(-0.7640249) 
disp (1-0.4657879)*100 

*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)

*calculating the change in the hazard of termination by capitulation if case is a congressional oversight case
disp exp(-1.265092) 
disp (1-0.28221333)*100

*Figure 2: Estimated survivor function using different values for the president's party power
stcurve, survival ///
    at1(pres_party_power_cong=-1.128211) at2(pres_party_power_cong=9.107339) ///
    lcolor(black black) lpattern(dash solid) ///
    legend(order(1 "Presidential party power (mean)" 2 "Presidential party power (mean + sd)") size(vsmall)) ///
    graphregion(color(white)) bgcolor(white) ///
    xtitle("Sanctions duration") ///
    title("")


*Figure 3: Estimated survivor function using different values for the president's approval ratings
stcurve, survival ///
    at1(sender_approval_ratings=.4791477) at2(sender_approval_ratings=.5803203) ///
    lcolor(black black) lpattern(dash solid) ///
    legend(order(1 "Presidential approval ratings (mean)" 2 "Presidential approval ratings (mean + sd)") size(vsmall)) ///
    graphregion(color(white)) bgcolor(white) ///
    xtitle("Sanctions duration") ///
    title("")

*********************************************Robustness section*********************************************

**Robustness Check 1: Continuous oversight measure (Table II Appendix)
gen sanctions_type = .
replace sanctions_type = 1 if tertype == 4
replace sanctions_type = 2 if tertype == 5
replace sanctions_type = 3 if tertype == 9
replace sanctions_type = 4 if tertype == 10

set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings c.sanctions_type  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings c.sanctions_type  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings c.sanctions_type  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target) 

**Robustness Check 2: Divided government for PPP (Table III Appendix)
gen divided = 1
replace divided = 0 if congress_number == 103 |  congress_number == 108 | congress_number == 109 | congress_number == 111 | congress_number == 115

stset duration_month, id(idnum) failure(termination_executive)
set more off
stcox divided sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox divided sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox divided sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)

**Robustness Check 3: Comprehensive sanctions (Table IV Appendix)
set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean comprehensive target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean comprehensive target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean comprehensive target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)


**Robustness Check 4: Multiple sanctions (Table V Appendix)
set more off
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged multiple, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged multiple, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged multiple, efron nohr vce(cluster target)

**Robustness Check 5: Deficit (Table VI Appendix)
set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged log_totaldeficit_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged log_totaldeficit_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged log_totaldeficit_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)


**Robustness Check 6: Administration dummies (Table VII Appendix)
set more off
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged clinton bush_jr obama trump, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged clinton bush_jr obama trump, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight  sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged clinton bush_jr obama trump, efron nohr vce(cluster target)


**Robustness Check 7: Decade dummies (Table VIII Appendix)
gen year_2001 = 0
replace year_2001 = 1 if year == 2001
replace year_2001 = 1 if year == 2002
replace year_2001 = 1 if year == 2003
replace year_2001 = 1 if year == 2004
replace year_2001 = 1 if year == 2005
replace year_2001 = 1 if year == 2006
replace year_2001 = 1 if year == 2007
replace year_2001 = 1 if year == 2008
replace year_2001 = 1 if year == 2009
replace year_2001 = 1 if year == 2010

gen year_2011 = 0
replace year_2011 = 1 if year == 2011
replace year_2011 = 1 if year == 2012
replace year_2011 = 1 if year == 2013
replace year_2011 = 1 if year == 2014
replace year_2011 = 1 if year == 2015
replace year_2011 = 1 if year == 2016
replace year_2011 = 1 if year == 2017
replace year_2011 = 1 if year == 2018

set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged year_2001 year_2011, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged year_2001 year_2011, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged year_2001 year_2011, efron nohr vce(cluster target)

**Robustness Check 8: Election proximity (Table IX Appendix)
gen election_prox = .
replace election_prox = 3 if year == 2018 
replace election_prox = 4 if year == 2017

replace election_prox = 1 if year == 2016 
replace election_prox = 2  if year == 2015
replace election_prox = 3  if year == 2014
replace election_prox = 4  if year == 2013

replace election_prox = 1 if year == 2012
replace election_prox = 2 if year == 2011
replace election_prox = 3 if year == 2010
replace election_prox = 4 if year == 2009

replace election_prox = 1 if year == 2008
replace election_prox = 2 if year == 2007
replace election_prox = 3 if year == 2006
replace election_prox = 4 if year == 2005

replace election_prox = 1 if year == 2004
replace election_prox = 2 if year == 2003
replace election_prox = 3 if year == 2002
replace election_prox = 4 if year == 2001

replace election_prox = 1 if year == 2000
replace election_prox = 2 if year == 1999
replace election_prox = 3 if year == 1998
replace election_prox = 4 if year == 1997

replace election_prox = 1 if year == 1996
replace election_prox = 2 if year == 1995
replace election_prox = 3 if year == 1994
replace election_prox = 4 if year == 1993

replace election_prox = 1 if year == 1992
replace election_prox = 2 if year == 1991
replace election_prox = 3 if year == 1990

set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year election_prox log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year election_prox log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year election_prox log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)


**Robustness Check 9: Including stalemate (Table X Appendix)
clear
set more off
*replace line 235 below with your own working directory
cd "/Users/hanaattia/Dropbox/Mac (2)/Desktop/PaperII_termination/FPA/Empirics/Replication"
use "1. Data_Replication.dta"

gen cong_oversight = 0
replace cong_oversight = 1 if tertype == 4
replace cong_oversight = 1 if tertype == 5

drop if tertype == 1 
drop if tertype == 2 

sort cowyearmonth
quietly by cowyearmonth: gen dup = cond(_N==1,0,_n)
gen multiple = 0
replace multiple = 1 if dup > 0

***T-test
ttest duration_month, by(cong_oversight)

gen log_NYT_above_mean = 0
replace log_NYT_above_mean = 1 if log_NYT_monthly_t_1 > 2.602981

generate termination_targetco = 0
replace  termination_targetco = 1 if status == 1

generate termination_senderca = 0
replace  termination_senderca = 1 if status == 2

corr pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged log_totaldeficit_lagged sender_costly sendersalience mean_strength_bipartisanship sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_costly target_polyarchy_t_1 target_leadershipchange_laggd_1 idealpoint_dist_abs_lagged log_trade_lagged

sum duration_month termination_executive termination_targetcomp termination_sendercap pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged log_totaldeficit_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean comprehensive target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged

set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)


*********************************************Appendix*********************************************
clear
set more off
*replace line 281 below with your own working directory
cd "/Users/hanaattia/Dropbox/Mac (2)/Desktop/PaperII_termination/FPA/Empirics/Replication"
use "1. Data_Replication.dta"

*Creating congressional oversight variable
gen cong_oversight = 0
replace cong_oversight = 1 if tertype == 4
replace cong_oversight = 1 if tertype == 5

*Droping congressional sanctions cases and keeping congressional oversight and executive sanctions cases
drop if tertype == 1 
drop if tertype == 2 

*Droping cases that ended in stalemate
drop if drop_stalemate == 1

*Creating variable that denotes whether the country is targeted by multiple US sanctions regimes
sort cowyearmonth
quietly by cowyearmonth: gen dup = cond(_N==1,0,_n)
gen multiple = 0
replace multiple = 1 if dup > 0

*Creating variable that denotes whether the country has received above average NYT news coverage
gen log_NYT_above_mean = 0
replace log_NYT_above_mean = 1 if log_NYT_monthly_t_1 > 2.602981


generate termination_targetco = 0
replace  termination_targetco = 1 if status == 1

generate termination_senderca = 0
replace  termination_senderca = 1 if status == 2

**Table I Appendix: Descriptive statistics of variables
sum duration_month termination_executive termination_targetcomp termination_sendercap pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged mean_strength_bipartisanship sendersalience sender_leadershipchange_year log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged

** Table XI Appendix: Sender leadership change 6 months lag
set more off
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_lst6mo log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_lst6mo log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight sender_unemployment_perc_lagged  mean_strength_bipartisanship sendersalience sender_leadershipchange_lst6mo log_NYT_above_mean target_log_gdppercap_lagged  target_polyarchy_t_1 target_leadershipchng_lggd_lst6 idealpoint_dist_abs_lagged log_trade_lagged, efron nohr vce(cluster target)

*Table XII Appendix: Na�ve model
set more off 
stset duration_month, id(idnum) failure(termination_executive)
stcox pres_party_power_cong sender_approval_ratings cong_oversight, efron nohr vce(cluster target)
*Look at partial acquiesence
stset duration_month, id(idnum) failure(status == 1)
stcox pres_party_power_cong sender_approval_ratings cong_oversight, efron nohr vce(cluster target)
*Look at sender capitulation
stset duration_month, id(idnum) failure(status == 2)
stcox pres_party_power_cong sender_approval_ratings cong_oversight, efron nohr vce(cluster target)

log close
